import request from '@/utils/request'

// 查询复员军人信息列表
export function listDemobilization_soldier(query) {
  return request({
    url: '/archive_info/demobilization_soldier/list',
    method: 'get',
    params: query
  })
}

// 查询复员军人信息详细
export function getDemobilization_soldier(id) {
  return request({
    url: '/archive_info/demobilization_soldier/' + id,
    method: 'get'
  })
}

// 新增复员军人信息
export function addDemobilization_soldier(data) {
  return request({
    url: '/archive_info/demobilization_soldier',
    method: 'post',
    data: data
  })
}

// 修改复员军人信息
export function updateDemobilization_soldier(data) {
  return request({
    url: '/archive_info/demobilization_soldier',
    method: 'put',
    data: data
  })
}

// 删除复员军人信息
export function delDemobilization_soldier(id) {
  return request({
    url: '/archive_info/demobilization_soldier/' + id,
    method: 'delete'
  })
}

// 导出复员军人信息
export function exportDemobilization_soldier(query) {
  return request({
    url: '/archive_info/demobilization_soldier/export',
    method: 'get',
    params: query
  })
}